// JavaScript Document
function popUp(url,w,h){
	//alert("test");
 rm=window.open(url,'poll','width='+w+',height='+h+',resizable=yes,scrollbars=yes,status=0');
	if (rm != null) {
		rm.focus();
		if (rm.opener == null )
			rm.opener = self;
	}
}

	
function gotoURL(url) {
	document.location = url;
}

function getDateNow(){
	var d = new Date();
	var curr_date = d.getDate();
	var curr_month = d.getMonth()+1;
	var curr_year = d.getFullYear();
	if(curr_date < 10) { curr_date = "0"+curr_date;}
	if(curr_month < 10) { curr_month = "0"+curr_month;}
	if(curr_year < 2500) { curr_year = curr_year+543;}

	return curr_year + "-" + curr_month + "-" + curr_date;

}

function getMonthNowFixDate(day){
	var d = new Date();
	//var curr_date = d.getDate();
	var curr_month = d.getMonth()+1;
	var curr_year = d.getFullYear();
	//if(curr_date < 10) { curr_date = "0"+curr_date;}
	if(curr_month < 10) { curr_month = "0"+curr_month;}
	if(curr_year < 2500) { curr_year = curr_year+543;}

	return curr_year + "-" + curr_month + "-" + day;

}

